package cn.hk.vaccination.mapper;

import cn.hk.vaccination.domain.PlanCommonInoculation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 普通人接种计划管理表 Mapper 接口
 * </p>
 *
 * @author xu
 * @since 2023-03-10
 */
@DataSource(DataSourceType.KELIN)
public interface PlanCommonInoculationMapper extends BaseMapper<PlanCommonInoculation> {

    PlanCommonInoculation selectPlanCommonInoculationByPidAndAgeAndGender(@Param("pid") Long pid,@Param("age") Integer age,@Param("gender") Integer gender);

    List<Long> selectIdListByAgeAndGender(@Param("age")Integer age,@Param("gender")Integer gender);

    List<PlanCommonInoculation> selectListByAgeAndGender(@Param("age")Integer age, @Param("gender")Integer gender);
}
